﻿<Window x:Class="TimeToGo.Presentation.Views.EditTimeView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Edit Time" Height="140" Width="300" WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
    <StackPanel Orientation="Vertical">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="50" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="35" />
                <RowDefinition Height="35" />
            </Grid.RowDefinitions>

            <TextBlock Text="Name" Margin="5" Grid.Row="0" Grid.Column="0" />
            <TextBlock Text="Time" Margin="5" Grid.Row="1" Grid.Column="0" />

            <TextBox Text="{Binding Path=Name}" Margin="5" Grid.Row="0" Grid.Column="1" />
            <TextBox Text="{Binding Path=Time}" Margin="5" Grid.Row="1" Grid.Column="1" />
        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Width="75" Height="23" Margin="5" Command="{Binding Path=OkCommand}">OK</Button>
            <Button Width="75" Height="23" Margin="5" Command="{Binding Path=CancelCommand}">Cancel</Button>
        </StackPanel>
    </StackPanel>
</Window>
